package com.ruoyi.graduate.domain.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@ApiModel("摄影订单分页查询参数类")
public class MsPhotographyOrderPageParam extends PageBaseParam{

    @ApiModelProperty(value = "接单摄影师名（外键，关联ms_sys_user表的user_id，必填）")
    private String photographerName; // 对应数据库photographer_id字段（外键，非空）

    @ApiModelProperty(value = "约拍时间（如2024-05-15 14:00，必填）")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime shootTimeStart; // 对应数据库shoot_time字段（非空，datetime类型）


    @ApiModelProperty(value = "约拍时间（如2024-05-15 14:00，必填）")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime shootTimeEnd;

    @ApiModelProperty(value = "订单状态：0=待确认，1=待处理，2=已接单，3=已完成，4=已取消（默认待确认）")
    private Integer orderStatus;
}
